function [coronal_middle, sagittal_left_middle, sagittal_right_middle] = select_slices_to_plot(patient);
    
    % Use the static mask to find the middle coronal (easy) and middle left
    % and right lungs in sagittal views;
        %------------------------------------------------------------------------
    %   This file is part of the
    %   5D-Novel4DCT Toolbox  ("Novel4DCT-Toolbox")
    %   DH Thomas, Ph.D
    %   University of California, Los Angeles
    %   Contact: mailto:dhthomas@mednet.ucla.edu
    %------------------------------------------------------------------------
    % $Author: DHThomas $	$Date: 2014/04/01 10:23:59 $	$Revision: 0.1 $
    
coronal_middle = patient.dim(1)/2;


mask = logical(patient.static_mask);
mask = permute(mask,[2,1,3]);
mask = mask(:,:);
[c index] = max(mask);
min_sagittal = min(index(c>0));
max_sagittal = max(index(c>0));
sagittal_width = max_sagittal - min_sagittal;
sagittal_left_middle = floor(sagittal_width/4)+min_sagittal;
sagittal_right_middle = 3*floor(sagittal_width/4)+min_sagittal;


